package a.f.d;

import a.c.d;
import a.c.e;
import a.c.k;
import a.c.n;
import a.c.v;
import a.c.x;
import a.c.z;
import a.d.w;
import a.f.*;
import a.f.o;
import a.i.nb;
import a.i.sb;

import java.util.*;

import a.d.w;

class bb
{
  private k a;
  private k b;
  private x c;
  private x d;
  private n e;
  private n f;
  private o g;
  private z h;
  private z i;
  private z j;
  private z k;
  private Map l;
  private Map n;
  private Set o;
  private Set p;
  private n q;
  private k r;
  private sb s;
  private x t;
  private k u;
  private n v;
  private k w;
  private z x;
  static final String y = "SourceGroupNodeLayer";
  static final String z = "TargetGroupNodeLayer";
  static final String A = "SourceGroupNode";
  static final String B = "TargetGroupNode";
  static final String C = "GroupNodeConnectorEdge";
  static final String D = "SourceGroupNodeConnector";
  static final String E = "TargetGroupNodeConnector";
  static final String F = "SimpleSourceGroupNodeConnector";
  static final String G = "SimpleTargetGroupNodeConnector";
  
  public bb(o paramo, x paramx1, z paramz, x paramx2, k paramk1, k paramk2, n paramn1, n paramn2)
  {
    this.x = paramz;
    this.g = paramo;
    this.a = paramk1;
    this.b = paramk2;
    this.c = paramx1;
    this.d = paramx2;
    this.e = paramn1;
    this.f = paramn2;
    k localk = paramo.c(oc.a);
    if (f.o == 0)
    {
      if (localk != null) {
        this.q = paramo.C();
      }
    }
    else {
      this.s = new sb(this.q, paramo, oc.a);
    }
  }
  
  public void a(x paramx, k paramk1, n paramn, k paramk2)
  {
    this.t = paramx;
    this.v = paramn;
    this.u = paramk1;
    this.w = paramk2;
  }
  
  public boolean a()
  {
    return true;
  }
  
  public boolean a(e parame)
  {
    int m = f.o;
    if (m == 0) {
      if (!this.l.containsKey(parame)) {
        if (m != 0) {
          break label39;
        }
      }
    }
    label39:
    return this.n.containsKey(parame);
  }
  
  public Object c(e parame)
  {
    int m = f.o;
    a_ locala_ = (a_)this.l.get(parame);
    if (m == 0) {
      if (locala_ == null) {
        locala_ = (a_)this.n.get(parame);
      }
    }
    if (m == 0) {}
    return locala_ == null ? null : locala_.a;
  }
  
  public void a(z paramz)
  {
    int i10 = f.o;
    int i9 = f.n;
    x localx = c.a(this.g);
    ArrayList localArrayList1 = new ArrayList(255);
    HashSet localHashSet = new HashSet();
    this.h = new z();
    this.i = new z();
    this.j = new z();
    this.k = new z();
    this.l = new HashMap();
    this.n = new HashMap();
    int m = 0;
    HashMap localHashMap1 = new HashMap();
    HashMap localHashMap2 = new HashMap();
    HashMap localHashMap3 = new HashMap();
    ArrayList localArrayList2 = new ArrayList(255);
    ArrayList localArrayList3 = new ArrayList();
    ArrayList localArrayList4 = new ArrayList();
    ArrayList localArrayList5 = new ArrayList();
    ArrayList localArrayList6 = new ArrayList();
    v localv1 = this.x.f();
    v localv2 = paramz.f();
    if (localv2.a() != null) {}
    label940:
    label1377:
    label1387:
    label3327:
    while (i10 != 0)
    {
      a.c.bb localbb1 = (a.c.bb)localv2.c();
      a.c.bb localbb2 = (a.c.bb)localv2.a().c();
      localHashMap3.clear();
      localArrayList2.clear();
      if (i9 != 0) {
        break label3437;
      }
      Object localObject1 = localbb1.f();
      Object localObject2;
      Object localObject3;
      a_ locala_1;
      do
      {
        if (localObject1 == null) {
          break;
        }
        e locale1 = (e)((v)localObject1).c();
        this.c.a(locale1, m);
        if (i9 != 0) {
          break label3431;
        }
        localObject2 = locale1.h();
        do
        {
          if (localObject2 == null) {
            break;
          }
          localObject3 = this.a.get(localObject2);
          if (i9 != 0) {
            break label3431;
          }
          if (localObject3 != null)
          {
            locala_1 = (a_)localHashMap3.get(localObject3);
            if (i10 == 0) {
              if (locala_1 == null)
              {
                locala_1 = new a_(localObject3);
                localHashMap3.put(localObject3, locala_1);
                localArrayList2.add(locala_1);
              }
            }
            locala_1.b.add(localObject2);
          }
          localObject2 = ((d)localObject2).i();
        } while (i9 == 0);
        localObject1 = ((v)localObject1).a();
        if (i10 != 0) {
          break label3476;
        }
      } while (i9 == 0);
      d locald1;
      v localv3;
      d locald2;
      e locale3;
      Object localObject4;
      if (i10 == 0)
      {
        if (i10 != 0) {
          break label3476;
        }
        if (localHashMap3.size() > 0)
        {
          m++;
          localObject1 = new a.c.bb();
          localv2 = paramz.b(localObject1, localv2);
          localv1 = this.x.b(nb.a("SourceGroupNodeLayer", localv1.c()), localv1);
          this.j.add(new Integer(m));
          int i2 = localArrayList2.size() - 1;
          do
          {
            if (i2 < 0) {
              break;
            }
            localObject2 = (a_)localArrayList2.get(i2);
            this.h.add(localObject2);
            localObject3 = this.g.i();
            localx.a(localObject3, c.fb);
            if (i9 != 0) {
              break label3431;
            }
            if (this.t != null) {
              this.t.a(localObject3, nb.a("SourceGroupNode", ((a_)localObject2).a, localv1.c()));
            }
            ((a_)localObject2).d = ((e)localObject3);
            this.g.d(localObject3).b(0.0D, 0.0D);
            this.l.put(localObject3, localObject2);
            ((a.c.bb)localObject1).add(localObject3);
            this.c.a(localObject3, m);
            locala_1 = (a_)localHashMap1.get(((a_)localObject2).a);
            if (locala_1 != null)
            {
              locald1 = this.g.a(locala_1.d, (e)localObject3);
              if (i10 == 0)
              {
                if (this.v != null) {
                  this.v.a(locald1, nb.a("GroupNodeConnectorEdge", this.t.get(locala_1.d), this.t.get(localObject3)));
                }
                locala_1.e = (((a_)localObject2).f = locald1);
                ((a_)localObject2).g = locala_1;
                locala_1.i = ((a_)localObject2);
                ((a_)localObject2).c.addAll(locala_1.c);
                locala_1.c.clear();
              }
              locala_1.c = null;
            }
            locald1 = null;
            localArrayList3.clear();
            localv3 = ((a_)localObject2).b.f();
            do
            {
              if (localv3 == null) {
                break;
              }
              locald2 = (d)localv3.c();
              localArrayList6.clear();
              locale3 = locald2.e();
              if (i9 != 0) {
                break label3431;
              }
              if ((locald1 == null) || (locale3 != locald1.e()))
              {
                if (localArrayList3.size() > 0)
                {
                  if (i10 != 0) {
                    break label940;
                  }
                  if (locald1 != null)
                  {
                    this.q.a(locald1, localArrayList3.toArray(new kc[localArrayList3.size()]));
                    localArrayList3.clear();
                  }
                }
                locald1 = this.g.a(locale3, (e)localObject3);
                if (i10 == 0)
                {
                  if (this.v != null) {
                    this.v.a(locald1, nb.a("SourceGroupNodeConnector", this.u.get(locale3), this.t.get(localObject3)));
                  }
                  this.g.a(locald1, this.g.p(locald2));
                }
                this.e.a(locald1, this.e.get(locald2));
              }
              if (i10 == 0) {
                if (this.q != null)
                {
                  localObject4 = (kc[])this.s.get(locald2);
                  if (i10 != 0) {
                    break label1174;
                  }
                  if (localObject4 != null)
                  {
                    if (i10 != 0) {
                      break label1174;
                    }
                    if (localObject4.length > 0)
                    {
                      int i4 = localObject4.length - 1;
                      do
                      {
                        if (i4 < 0) {
                          break;
                        }
                        if (i9 != 0) {
                          break label1377;
                        }
                        if (localObject4[i4].g().j())
                        {
                          localArrayList3.add(localObject4[i4]);
                          if (i10 != 0) {
                            continue;
                          }
                          if (i9 == 0) {}
                        }
                        else
                        {
                          localArrayList6.add(localObject4[i4]);
                        }
                        i4--;
                      } while (i9 == 0);
                    }
                  }
                }
              }
              localObject4 = this.b.get(locald2);
              if (i10 != 0) {
                break label3431;
              }
              if (localObject4 == null)
              {
                d locald3 = this.g.a((e)localObject3, locald2.f());
                if (i10 == 0)
                {
                  if (this.v != null) {
                    this.v.a(locald3, nb.a("SimpleSourceGroupNodeConnector", this.w.get(locald2), this.t.get(localObject3), this.u.get(locald2.f())));
                  }
                  this.g.b(locald3, this.g.q(locald2));
                  this.f.a(locald3, this.f.get(locald2));
                }
                ((a_)localObject2).j.put(locald2, locald3);
                if (i10 != 0) {
                  break label1387;
                }
                if (localArrayList6.size() > 0)
                {
                  this.q.a(locald3, localArrayList6.toArray(new kc[localArrayList6.size()]));
                  if (i10 != 0) {
                    break label1387;
                  }
                  if (i9 == 0) {}
                }
              }
              else
              {
                ((a_)localObject2).c.add(locald2);
              }
              if (i10 == 0)
              {
                if (localHashSet.add(locald2)) {
                  localArrayList1.add(locald2);
                }
                localv3 = localv3.a();
              }
            } while (i9 == 0);
            if (i10 != 0) {
              break label3481;
            }
            if (i10 == 0) {
              if ((localArrayList3.size() > 0) && (locald1 != null))
              {
                this.q.a(locald1, localArrayList3.toArray(new kc[localArrayList3.size()]));
                localArrayList3.clear();
              }
            }
            if (i10 == 0)
            {
              if (!((a_)localObject2).c.isEmpty()) {
                localHashMap1.put(((a_)localObject2).a, localObject2);
              }
              i2--;
            }
          } while (i9 == 0);
        }
      }
      localHashMap3.clear();
      localArrayList2.clear();
      if (i10 != 0) {
        break label3431;
      }
      localObject1 = localbb2.f();
      do
      {
        if (localObject1 == null) {
          break;
        }
        e locale2 = (e)((v)localObject1).c();
        if (i9 != 0) {
          break label3431;
        }
        localObject2 = locale2.i();
        do
        {
          if (localObject2 == null) {
            break;
          }
          localObject3 = this.b.get(localObject2);
          if (i9 != 0) {
            break label3431;
          }
          if (localObject3 != null)
          {
            locala_1 = (a_)localHashMap3.get(localObject3);
            if (i10 == 0) {
              if (locala_1 == null)
              {
                locala_1 = new a_(localObject3);
                localHashMap3.put(localObject3, locala_1);
                localArrayList2.add(locala_1);
              }
            }
            locala_1.b.add(localObject2);
          }
          localObject2 = ((d)localObject2).j();
        } while (i9 == 0);
        localObject1 = ((v)localObject1).a();
        if (i10 != 0) {
          break label3476;
        }
      } while (i9 == 0);
      if (i10 != 0) {
        break label3476;
      }
      if (i10 == 0)
      {
        if (localHashMap3.size() > 0)
        {
          m++;
          localObject1 = new a.c.bb();
          localv2 = paramz.b(localObject1, localv2);
          localv1 = this.x.b(nb.a("TargetGroupNodeLayer", localv1.a().c()), localv1);
          this.k.add(new Integer(m));
          int i3 = localArrayList2.size() - 1;
          do
          {
            if (i3 < 0) {
              break label3395;
            }
            localObject2 = (a_)localArrayList2.get(i3);
            this.i.add(localObject2);
            localObject3 = this.g.i();
            if (i9 != 0) {
              break label3431;
            }
            if (this.t != null) {
              this.t.a(localObject3, nb.a("TargetGroupNode", ((a_)localObject2).a, localv1.c()));
            }
            localx.a(localObject3, c.fb);
            ((a_)localObject2).d = ((e)localObject3);
            this.g.d(localObject3).b(0.0D, 0.0D);
            this.n.put(localObject3, localObject2);
            ((a.c.bb)localObject1).add(localObject3);
            this.c.a(localObject3, m);
            locala_1 = (a_)localHashMap2.get(((a_)localObject2).a);
            if (i10 == 0) {
              if (locala_1 != null)
              {
                locala_1.i = ((a_)localObject2);
                ((a_)localObject2).g = locala_1;
              }
            }
            localHashMap2.put(((a_)localObject2).a, localObject2);
            locald1 = null;
            localArrayList4.clear();
            localv3 = ((a_)localObject2).b.f();
            do
            {
              if (localv3 == null) {
                break label3327;
              }
              localArrayList6.clear();
              localArrayList3.clear();
              locald2 = (d)localv3.c();
              locale3 = locald2.f();
              if (i9 != 0) {
                break label3431;
              }
              if ((locald1 == null) || (locale3 != locald1.f()))
              {
                if (localArrayList4.size() > 0)
                {
                  if (i10 != 0) {
                    break label2130;
                  }
                  if (locald1 != null)
                  {
                    this.q.a(locald1, localArrayList4.toArray(new kc[localArrayList4.size()]));
                    localArrayList4.clear();
                  }
                }
                locald1 = this.g.a((e)localObject3, locale3);
                if (i10 == 0)
                {
                  if (this.v != null) {
                    this.v.a(locald1, nb.a("TargetGroupNodeConnector", this.t.get(localObject3), this.u.get(locale3)));
                  }
                  this.g.b(locald1, this.g.q(locald2));
                }
                this.f.a(locald1, this.f.get(locald2));
              }
              if (i10 == 0) {
                if (this.q != null)
                {
                  localObject4 = (kc[])this.s.get(locald2);
                  if (i10 != 0) {
                    break label2405;
                  }
                  if (localObject4 != null)
                  {
                    if (i10 != 0) {
                      break label2405;
                    }
                    if (localObject4.length > 0)
                    {
                      int i5 = localObject4.length - 1;
                      do
                      {
                        if (i5 < 0) {
                          break;
                        }
                        localObject5 = localObject4[i5].g();
                        int i6 = ((fd)localObject5).a();
                        if (i10 != 0) {
                          break label3483;
                        }
                        if (i9 != 0) {
                          break label3482;
                        }
                        if (i6 == 2)
                        {
                          localArrayList4.add(localObject4[i5]);
                          if (i10 != 0) {
                            continue;
                          }
                          if (i9 == 0) {}
                        }
                        else
                        {
                          if (i10 == 0) {
                            if (((fd)localObject5).j())
                            {
                              localArrayList3.add(localObject4[i5]);
                              if (i10 != 0) {
                                continue;
                              }
                              if (i9 == 0) {
                                break label2386;
                              }
                            }
                          }
                          localArrayList6.add(localObject4[i5]);
                        }
                        i5--;
                      } while (i9 == 0);
                    }
                  }
                }
              }
              localObject4 = this.a.get(locald2);
              a_ locala_2 = null;
              Object localObject6 = localObject2;
              if (i10 == 0) {
                if (localObject4 == null)
                {
                  if (i10 != 0) {
                    break label2450;
                  }
                  localObject5 = locald2.e();
                  if (i9 == 0) {
                    break label2636;
                  }
                }
              }
              locala_2 = (a_)localHashMap1.get(localObject4);
              Object localObject5 = locala_2.d;
              int i7 = this.c.getInt(localObject5);
              do
              {
                if (((a_)localObject6).g == null) {
                  break;
                }
                if (i10 != 0) {
                  break label3483;
                }
                if (i9 != 0) {
                  break label3482;
                }
                if (this.c.getInt(((a_)localObject6).g.d) <= i7) {
                  break;
                }
                if (i10 == 0) {
                  if (((a_)localObject6).f == null)
                  {
                    ((a_)localObject6).f = (((a_)localObject6).g.e = this.g.a(((a_)localObject6).g.d, ((a_)localObject6).d));
                    if (i10 != 0) {
                      continue;
                    }
                    if (this.v != null) {
                      this.v.a(((a_)localObject6).f, nb.a("GroupNodeConnectorEdge", this.t.get(((a_)localObject6).g.d), this.t.get(((a_)localObject6).d)));
                    }
                  }
                }
                localObject6 = ((a_)localObject6).g;
              } while (i9 == 0);
              if (i10 == 0) {
                if (locala_2 == null)
                {
                  locald4 = this.g.a((e)localObject5, ((a_)localObject6).d);
                  if (i10 == 0)
                  {
                    if (this.v != null) {
                      this.v.a(locald4, nb.a("SimpleTargetGroupNodeConnector", this.w.get(locald2), this.u.get(localObject5), this.t.get(((a_)localObject6).d)));
                    }
                    ((a_)localObject6).j.put(locald2, locald4);
                    this.g.a(locald4, this.g.p(locald2));
                  }
                  this.e.a(locald4, this.e.get(locald2));
                  if (i10 == 0) {
                    if (localArrayList6.size() > 0)
                    {
                      if (i10 == 0)
                      {
                        if (localArrayList3.size() > 0)
                        {
                          localArrayList3.addAll(localArrayList6);
                          this.q.a(locald4, localArrayList3.toArray(new kc[localArrayList3.size()]));
                          if (i10 != 0) {
                            break label3300;
                          }
                          if (i9 == 0) {
                            break label3291;
                          }
                        }
                        this.q.a(locald4, localArrayList6.toArray(new kc[localArrayList6.size()]));
                      }
                      if (i10 != 0) {
                        break label3300;
                      }
                      if (i9 == 0) {
                        break label3291;
                      }
                    }
                  }
                  if (i10 != 0) {
                    break label3300;
                  }
                  if (localArrayList3.size() <= 0) {
                    break label3291;
                  }
                  this.q.a(locald4, localArrayList3.toArray(new kc[localArrayList3.size()]));
                  if (i10 != 0) {
                    break label3300;
                  }
                  if (i9 == 0) {
                    break label3291;
                  }
                }
              }
              d locald4 = locala_2.d.a(((a_)localObject6).d);
              if ((i10 != 0) || (locald4 == null))
              {
                locald4 = this.g.a(locala_2.d, ((a_)localObject6).d);
                if ((i10 != 0) || (this.v != null)) {
                  this.v.a(locald4, nb.a("GroupNodeConnectorEdge", this.t.get(locala_2.d), this.t.get(((a_)localObject6).d)));
                }
                if (i10 != 0) {
                  break label3262;
                }
                if (localArrayList6.size() > 0)
                {
                  this.q.a(locald4, localArrayList6.toArray(new kc[localArrayList6.size()]));
                  if (i10 != 0) {
                    break label3262;
                  }
                  if (i9 == 0) {}
                }
              }
              else
              {
                if (i10 != 0) {
                  break label3262;
                }
                if (localArrayList6.size() > 0)
                {
                  kc[] arrayOfkc = (kc[])this.q.get(locald4);
                  if ((i10 != 0) || (arrayOfkc != null))
                  {
                    int i8 = arrayOfkc.length - 1;
                    do
                    {
                      if (i8 < 0) {
                        break;
                      }
                      localArrayList6.add(arrayOfkc[i8]);
                      i8--;
                      if (i10 != 0) {
                        break label3273;
                      }
                      if (i9 != 0) {
                        break label3263;
                      }
                    } while (i9 == 0);
                  }
                  if (i10 != 0) {
                    break;
                  }
                  this.q.a(locald4, localArrayList6.toArray(new kc[localArrayList6.size()]));
                }
              }
              locala_2.j.put(locald2, locald4);
              ((a_)localObject6).j.put(locald2, locald4);
              locala_2.c.remove(locald2);
              if (i10 == 0) {
                if (locala_2.c.isEmpty()) {
                  localHashMap1.remove(localObject4);
                }
              }
              if (i10 == 0)
              {
                if (localHashSet.add(locald2)) {
                  localArrayList1.add(locald2);
                }
                localv3 = localv3.a();
              }
            } while (i9 == 0);
            if (i10 != 0) {
              break label3476;
            }
            if (i10 == 0)
            {
              if ((localArrayList4.size() > 0) && (locald1 != null))
              {
                this.q.a(locald1, localArrayList4.toArray(new kc[localArrayList4.size()]));
                localArrayList4.clear();
              }
              i3--;
            }
          } while (i9 == 0);
        }
        localv1 = localv1.a();
        localv2 = localv2.a();
        m++;
        if (i10 != 0) {
          break label3476;
        }
      }
      if (i9 == 0) {
        break;
      }
    }
    label1174:
    label2130:
    label2386:
    label2405:
    label3431:
    label3437:
    localv2 = ((a.c.bb)paramz.d()).f();
    label2450:
    label2636:
    label3291:
    label3300:
    if (localv2 != null)
    {
      this.c.a(localv2.c(), m);
      localv2 = localv2.a();
    }
    label3262:
    label3263:
    label3273:
    while (i10 != 0) {
      if (i9 == 0) {
        break;
      }
    }
    label3395:
    int i1 = localArrayList1.size() - 1;
    label3476:
    label3481:
    label3482:
    label3483:
    do
    {
      while (i9 == 0)
      {
        if (i1 < 0) {
          break;
        }
        this.g.f((d)localArrayList1.get(i1));
        i1--;
      }
    } while (i10 != 0);
  }
  
  public void b(z paramz)
  {
    int i1 = f.o;
    int m = f.n;
    this.o = new HashSet();
    v localv = this.h.f();
    if (localv != null) {}
    a_ locala_;
    while (i1 != 0)
    {
      locala_ = (a_)localv.c();
      this.o.add(this.c.get(locala_.d));
      if (i1 != 0) {
        break label107;
      }
      localv = localv.a();
      if (m != 0) {
        break label100;
      }
      if (m == 0) {
        break;
      }
    }
    this.p = new HashSet();
    label100:
    label107:
    localv = this.i.f();
    do
    {
      if (localv == null) {
        break;
      }
      locala_ = (a_)localv.c();
      this.p.add(this.c.get(locala_.d));
      localv = localv.a();
    } while (m == 0);
  }
  
  public void b()
  {
    int i4 = f.o;
    int i3 = f.n;
    Object localObject1 = this.h.f();
    if (localObject1 != null) {}
    Object localObject3;
    Object localObject4;
    Object localObject5;
    label124:
    label126:
    Object localObject6;
    Object localObject7;
    label227:
    Object localObject8;
    label329:
    label338:
    label375:
    while (i4 != 0)
    {
      localObject2 = (a_)((v)localObject1).c();
      do
      {
        localObject3 = ((a_)localObject2).b.f();
        do
        {
          if (localObject3 == null) {
            break label385;
          }
          localObject4 = (d)((v)localObject3).c();
          if (i3 != 0) {
            break;
          }
          if (i4 == 0)
          {
            if (i4 != 0) {
              break label397;
            }
            if (!this.g.j((d)localObject4))
            {
              this.g.g((d)localObject4);
              localObject5 = this.g.e(localObject4);
              if (i4 != 0) {
                break label124;
              }
              ((zb)localObject5).b();
              if (i3 == 0) {
                break label126;
              }
            }
          }
          localObject5 = this.g.e(localObject4);
          localObject6 = ((a_)localObject2).d.b(((d)localObject4).e());
          do
          {
            if (localObject6 == null) {
              break label375;
            }
            localObject7 = this.g.e(localObject6);
            if (i3 != 0) {
              break;
            }
            if (((d)localObject6).e() == ((d)localObject4).e())
            {
              ((zb)localObject5).a(((zb)localObject7).c());
              if (i4 != 0) {
                break label227;
              }
              if (i3 == 0) {}
            }
            else
            {
              w localw1 = this.g.r((d)localObject6);
              ((zb)localObject5).a(localw1.a, localw1.b);
            }
            int m = 0;
            do
            {
              if (m >= ((zb)localObject7).a()) {
                break;
              }
              if (i4 != 0) {
                break label338;
              }
              w localw2 = ((zb)localObject7).a(m);
              ((zb)localObject5).a(localw2.a, localw2.b);
              m++;
              if (i3 != 0) {
                break label329;
              }
            } while (i3 == 0);
            if (i4 != 0) {
              break;
            }
            if (((d)localObject6).f() == ((d)localObject4).f())
            {
              ((zb)localObject5).b(((zb)localObject7).d());
              if (i4 != 0) {
                continue;
              }
              if (i3 == 0) {}
            }
            else
            {
              localObject8 = this.g.s((d)localObject6);
              ((zb)localObject5).a(((w)localObject8).a, ((w)localObject8).b);
            }
            localObject6 = a(((d)localObject6).f(), (d)localObject4);
          } while (i3 == 0);
          localObject3 = ((v)localObject3).a();
        } while (i3 == 0);
        localObject1 = ((v)localObject1).a();
      } while (i4 != 0);
      if (i3 == 0) {
        break;
      }
    }
    label385:
    label397:
    localObject1 = new ArrayList(50);
    Object localObject2 = this.i.f();
    if (localObject2 != null) {}
    label532:
    label534:
    label637:
    while (i4 != 0)
    {
      localObject3 = (a_)((v)localObject2).c();
      if (i3 != 0) {
        break label866;
      }
      localObject4 = ((a_)localObject3).b.f();
      do
      {
        if (localObject4 == null) {
          break;
        }
        localObject5 = (d)((v)localObject4).c();
        if (i3 != 0) {
          break label937;
        }
        if (i4 == 0) {
          if (!this.g.j((d)localObject5))
          {
            this.g.g((d)localObject5);
            localObject6 = this.g.e(localObject5);
            if (i4 != 0) {
              break label532;
            }
            ((zb)localObject6).b();
            if (i3 == 0) {
              break label534;
            }
          }
        }
        localObject6 = this.g.e(localObject5);
        localObject7 = ((a_)localObject3).d.a(((d)localObject5).f());
        do
        {
          ((List)localObject1).clear();
          do
          {
            if (localObject7 == null) {
              break label754;
            }
            localObject8 = this.g.e(localObject7);
            if (i3 != 0) {
              break;
            }
            if (((d)localObject7).f() == ((d)localObject5).f())
            {
              ((zb)localObject6).b(((zb)localObject8).d());
              if (i4 != 0) {
                break label637;
              }
              if (i3 == 0) {}
            }
            else
            {
              ((List)localObject1).add(this.g.s((d)localObject7));
            }
            int i2 = ((zb)localObject8).a() - 1;
            do
            {
              if (i2 < 0) {
                break;
              }
              ((List)localObject1).add(((zb)localObject8).a(i2));
              i2--;
              if (i4 != 0) {
                break label735;
              }
              if (i3 != 0) {
                break label720;
              }
            } while (i3 == 0);
            if (i4 != 0) {
              break;
            }
            if (((d)localObject7).e() == ((d)localObject5).e())
            {
              ((zb)localObject6).a(((zb)localObject8).c());
              if (i4 != 0) {
                continue;
              }
              if (i3 == 0) {}
            }
            else
            {
              ((List)localObject1).add(this.g.r((d)localObject7));
            }
            localObject7 = c(((d)localObject7).e(), (d)localObject5);
          } while (i3 == 0);
        } while (i4 != 0);
        int i1 = ((List)localObject1).size() - 1;
        if (i1 >= 0) {}
        while (i4 != 0)
        {
          w localw3 = (w)((List)localObject1).get(i1);
          ((zb)localObject6).a(localw3.a, localw3.b);
          i1--;
          if (i4 != 0) {
            break label836;
          }
          if (i3 != 0) {
            break label834;
          }
          if (i3 == 0) {
            break;
          }
        }
        localObject4 = ((v)localObject4).a();
      } while (i3 == 0);
      localObject2 = ((v)localObject2).a();
      if (i4 != 0) {
        break label929;
      }
      if (i3 == 0) {
        break;
      }
    }
    label720:
    label735:
    label754:
    localObject2 = this.h.f();
    label834:
    label836:
    label866:
    do
    {
      do
      {
        if (localObject2 == null) {
          break;
        }
        localObject3 = ((a_)((v)localObject2).c()).d;
        if (i3 != 0) {
          break label952;
        }
        if (this.g.h((e)localObject3)) {
          this.g.a((e)localObject3);
        }
        localObject2 = ((v)localObject2).a();
      } while (i3 == 0);
    } while (i4 != 0);
    localObject2 = this.i.f();
    label929:
    label937:
    label952:
    do
    {
      if (localObject2 == null) {
        break;
      }
      localObject3 = ((a_)((v)localObject2).c()).d;
      if (this.g.h((e)localObject3)) {
        this.g.a((e)localObject3);
      }
      localObject2 = ((v)localObject2).a();
    } while (i3 == 0);
  }
  
  private d a(e parame, d paramd)
  {
    int m = f.o;
    if (m == 0) {
      if (parame == paramd.f()) {
        return null;
      }
    }
    a_ locala_ = (a_)this.l.get(parame);
    if (m == 0) {
      if (locala_ == null) {
        return null;
      }
    }
    d locald = (d)locala_.j.get(paramd);
    if (m == 0) {
      if (locald == null) {
        locald = locala_.e;
      }
    }
    return locald;
  }
  
  private d c(e parame, d paramd)
  {
    int m = f.o;
    if (m == 0) {
      if (parame == paramd.e()) {
        return null;
      }
    }
    a_ locala_ = (a_)this.n.get(parame);
    if (m == 0) {
      if (locala_ == null) {
        return null;
      }
    }
    d locald = (d)locala_.j.get(paramd);
    if (m == 0) {
      if (locald == null) {
        locald = locala_.f;
      }
    }
    if (m == 0) {
      if ((locald != null) && (this.l.containsKey(locald.e()))) {
        return null;
      }
    }
    return locald;
  }
  
  public void c()
  {
    if (f.o == 0)
    {
      if (this.s != null)
      {
        this.s.b();
        this.g.a(this.q);
        this.q = null;
        this.s = null;
      }
      this.d = null;
      this.c = null;
      this.g = null;
      this.e = null;
      this.a = null;
      this.j = null;
      this.h = null;
      this.l = null;
      this.f = null;
      this.b = null;
      this.k = null;
      this.i = null;
      this.n = null;
      this.o = null;
      this.p = null;
      this.t = null;
      this.u = null;
      this.v = null;
    }
    this.w = null;
  }
  
  Set d()
  {
    return this.p;
  }
  
  Set e()
  {
    return this.o;
  }
  
  static final class a_
  {
    public Object a;
    public z b = new z();
    public Set c = new HashSet();
    public e d;
    public d e;
    public d f;
    public a_ g;
    public a_ i;
    public Map j = new HashMap();
    
    public a_(Object paramObject)
    {
      this.a = paramObject;
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.d.bb

 * JD-Core Version:    0.7.0.1

 */